package com.dlc.felear.xiaoensale.entity;

import android.support.annotation.NonNull;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "t_action_ste_pitem")
public class ActionStepItem implements Comparable<ActionStepItem>{
    @DatabaseField(generatedId = true)
    private int id;
    @DatabaseField
    private int type;
    @DatabaseField
    private int serialNo;
    @DatabaseField
    private String name;
    @DatabaseField
    private int pic;
    @DatabaseField
    private int minValue;
    @DatabaseField
    private int maxValue;
    @DatabaseField
    private int currentValue;

    public int getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(int serialNo) {
        this.serialNo = serialNo;
    }

    public int getCurrentValue() {
        return currentValue;
    }

    public void setCurrentValue(int currentValue) {
        this.currentValue = currentValue;
    }

    public int getMinValue() {
        return minValue;
    }

    public void setMinValue(int minValue) {
        this.minValue = minValue;
    }

    public int getMaxValue() {
        return maxValue;
    }

    public void setMaxValue(int maxValue) {
        this.maxValue = maxValue;
    }

    public ActionStepItem() {
    }

    public ActionStepItem( int type, String name, int pic,int serialNo) {
        this.serialNo = serialNo;
        this.type = type;
        this.name = name;
        this.pic = pic;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getPic() {
        return pic;
    }

    public void setPic(int pic) {
        this.pic = pic;
    }


    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public int compareTo(@NonNull ActionStepItem o) {
        return this.getSerialNo()-o.getSerialNo();
    }
}
